"""
Stores portscaner host results

Stores the Ip of the host and it's open and closed ports

"""

class portResult:
	"""Stores the Ip of the host and it's open and closed ports
	
	Keyword arguments:
    ip -- Remote Machine IP Address
	openPorts -- Open Ports on the Remote Machine
	closedPorts -- Closed Ports on the Remote Machine
	
	"""
	def __init__(self,ip,openPorts,closedPorts):
		"""Default Constructor"""
		self.ip = ip
		self.openPorts = openPorts
		self.closedPorts = closedPorts
		
	def __str__(self):
		"""String Output"""
		return "Ip " + self.ip + "\nOpen Ports: " + str(self.openPorts) + "\nNumber of Closed Ports: " + str(len(self.closedPorts)) + "\n"
		
